* {
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}

.box {
  margin: 0;
  width: 500px;
  height: 165px;
  border: 1px solid #000;
  border-radius: 5px;
  margin: 0 auto;
  /* background-image: radial-gradient(#fff 10%, gray); */
}

.box > .img_box {
  position: relative;
  height: 125px;

}

.box > .img_box > ul {
  position: relative;
  height: 125px;
  /* background-color: #87ceeb; */
}
/* 设置每张图片的偏移值 */
.box > .img_box > ul > .list01 {
  transform: translateX(0) scale(0.8);
  z-index: 1;
  transform-origin: left center;
}
.box > .img_box > ul > .list02 {
  transform: translateX(50px) scale(1);
  z-index: 3;
  transform-origin: left center;
}
.box > .img_box > ul > .list03 {
  transform: translateX(180px) scale(0.8);
  z-index: 1;
  transform-origin: left center;
}
.box > .img_box > ul > .list04 {
  transform: translateX(100px) scale(0.8);
  transform-origin: left center;
}

.box > .img_box > ul > li {
  position: absolute;
  width: 400px;
  transition: 0.1s ease-in-out;
}

.box > .img_box > ul > li img {
  display: block;
  width: 100%;
}

.box > .img_box > .l_btn,
.box > .img_box > .r_btn {
  width: 30px;
  height: 50px;
  background-color: gray;
  transform: translateX(-50%);
  z-index: 999;
  text-align: center;
  line-height: 50px;
  font-size: 30px;
  color: #bababa;
  cursor: pointer;
  position: absolute;
  user-select: none;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
}

.box > .img_box > .l_btn:hover,
.box > .img_box > .r_btn:hover {
  color: #fff;
}
.box > .img_box > .l_btn {
  left: 0;
}

.box > .img_box > .r_btn {
  right: 0;
}

.box > .dot_box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.box>.dot_box >span {
  width: 20px;
  height: 5px;
  background-color: green;
  margin: 0 5px;
  cursor: pointer;
}

.box > .dot_box >.dot_active {
 background-color: red;
}